package com.zang.blogz.quartz;

import com.zang.blogz.service.ExceptionLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: ZVerify
 * @Description: TODO
 * @DateTime: 2022/9/4 12:15
 **/

@Slf4j
@Component("auroraQuartz")
public class AuroraQuartz {

    @Autowired
    private ExceptionLogService exceptionLogService;

    public void clear() {
        // 清空redis访客记录
       exceptionLogService.remove(null);
    }
}
